package com.qq2008.game.mojie.controller;

import com.qq2008.game.mojie.jdo.Role;
import com.qq2008.game.mojie.server.RoleServer;

import javax.servlet.http.HttpSession;

public class BaseController {
    public Role getSessionRole(HttpSession session) {
        return RoleServer.getRole((int) session.getAttribute("roleId"));
    }
}
